package arithmetic.arbitraryinteger.utils;

import java.util.ArrayList;

public class HandleNumber {

	public static HandleNumber getInstance() {
		return new HandleNumber();
	}

	private ArrayList<String> storeNums(String num) {

		int maxIntLen = String.valueOf(Integer.MAX_VALUE).length();
		ArrayList<String> subNums = new ArrayList<>();
		String subNum = num;
		while (true) {

			if (num == null) {
				break;
			}

			if (num.length() < maxIntLen) {
				subNums.add(num);
				break;
			}
			subNum = num.substring(0, maxIntLen);
			subNums.add(subNum);

			num = num.substring(maxIntLen);
		}
		System.out.println(subNums);
		return subNums;
	}

}
